import request from '@/utils/request'

// 查询中介房屋关联对象列表
export function listHouseMedium(houseId) {
  return request({
    url: '/domain/houseMedium/list/' + houseId,
    method: 'get',
  })
}

// 查询中介房屋关联对象详细
export function getHouseMedium(houseId) {
  return request({
    url: '/domain/houseMedium/' + houseId,
    method: 'get'
  })
}

// 新增中介房屋关联对象
export function addHouseMedium(data) {
  return request({
    url: '/domain/houseMedium',
    method: 'post',
    data: data
  })
}

// 修改中介房屋关联对象
export function updateHouseMedium(data) {
  return request({
    url: '/domain/houseMedium',
    method: 'put',
    data: data
  })
}

// 删除中介房屋关联对象
export function delHouseMedium(houseId) {
  return request({
    url: '/domain/houseMedium/' + houseId,
    method: 'delete'
  })
}
